﻿@model Internet.Models.AddVechilesModel

@{
    ViewBag.Title = "AddVehicle";
}

<h2>AddVehicle</h2>

@using (Html.BeginForm("ChangePassword", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
{
    @Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.", new { @class = "alert alert-block alert-error" })    
    <fieldset>
        <legend>Vehicle Information</legend>

        @*Year-------------------------------------------------------------------------------------------------------*@
        <div class="control-group">
            <div class="control-label">
                @Html.LabelFor(m => m.year)
            </div>
            <div class="controls">
                @Html.TextBoxFor(m => m.year, new { @class = "required" })
                @Html.ValidationMessageFor(m => m.year)
            </div>
        </div>

        @*Make-------------------------------------------------------------------------------------------------------*@
        <div class="control-group">
            <div class="control-label">
                @Html.LabelFor(m => m.make)
            </div>
            <div class="controls">
                @Html.TextBoxFor(m => m.make, new { @class = "required" })
                @Html.ValidationMessageFor(m => m.make)
            </div>
        </div>

        @*Model------------------------------------------------------------------------------------------------------*@
        <div class="control-group">
            <div class="control-label">
                @Html.LabelFor(m => m.model)
            </div>
            <div class="controls">
                @Html.TextBoxFor(m => m.model, new { @class = "required" })
                @Html.ValidationMessageFor(m => m.model)
            </div>
        </div>

        @*Engine Size------------------------------------------------------------------------------------------------*@
        <div class="control-group">
            <div class="control-label">
                @Html.LabelFor(m => m.engineSize)
            </div>
            <div class="controls">
                @Html.TextBoxFor(m => m.engineSize, new { @class = "required" })
                @Html.ValidationMessageFor(m => m.engineSize)
            </div>
        </div>

        @*Number of Cylinders----------------------------------------------------------------------------------------*@
        <div class="control-group">
            <div class="control-label">
                @Html.LabelFor(m => m.engineCylinder)
            </div>
            <div class="controls">
                @Html.TextBoxFor(m => m.engineCylinder, new { @class = "required" })
                @Html.ValidationMessageFor(m => m.engineCylinder)
            </div>
        </div>

        @*Fuel Type--------------------------------------------------------------------------------------------------*@
        <div class="control-group">
            <div class="control-label">
                @Html.LabelFor(m => m.fuelType)
            </div>
            <div class="controls">
                @Html.TextBoxFor(m => m.fuelType, new { @class = "required" })
                @Html.ValidationMessageFor(m => m.fuelType)
            </div>
        </div>

        @*Comments---------------------------------------------------------------------------------------------------*@
        <div class="control-group">
            <div class="control-label">
                @Html.LabelFor(m => m.comments)
            </div>
            <div class="controls">
                @Html.TextBoxFor(m => m.comments, new { @class = "required" })
                @Html.ValidationMessageFor(m => m.comments)
            </div>
        </div>
        
        <div class="form-actions">
            <input type="submit" value="Add Vehicle" class="btn btn-primary" />
        </div>
    </fieldset>
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


